home *** CD-ROM | disk | FTP | other *** search
Wrap
"FILE"="Xteq Systems X-Setup Plugin 6.0" "TYPE"="9" "COUNT"="1" "UIPATH 1"="Appearance\Start menu\Windows XP\Classic Start Menu" "NAME"="Cascaded Special Folders" "VERSION"="2.00" "LANGUAGE"="VBScript" "OSVERSION"="000001" "DESCRIPTION 1"="Use this plug-in to show some of the "special" folder of Window in cascading menu so you can easily access them. These items will appear on top of your Start Menu or inside the menu "All Programs" if you use the new (two columns) Start Menu in Windows XP." "DESCRIPTION 2"="NOTE: Do not activate ANY of these options if you are using an HP OfficeJet and want to use the scanner software that comes with it. It seems the software of this HP Combo does not like the directories X-Setup creates." "AUTHOR"="Xteq Systems" "CONTACTURL"="http://www.xteq.com" "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved" "COMMENT 1"="IE6+ fix found by Neil T." 'Declaration of some constants sP="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Start Menu" sPath="" sV1="Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" sV2="Printers.{2227A280-3AEA-1069-A2DE-08002B30309D}" sV3="Recycle Bin.{645FF040-5081-101B-9F08-00AA002F954E}" sV4="Scheduled Tasks.{D6277990-4C6A-11CF-8D87-00AA0060F5BF}" sV5="History.{FF393560-C2A7-11CF-BFF4-444553540000}" sV5file="History.{FF393560-C2A7-11CF-BFF4-444553540000}\desktop.ini" sV6="Subscriptions.{F5175861-2688-11D0-9C5E-00AA00A45957}" 'Called when the Plugin is started SUB Plugin_Initialize sPath=RegReadValue(sP) if FolderExists(sPath) then if right(sPath,1)<>"\" then sPath=sPath & "\" Call SetUIElement(1,"Show cascading 'Control Panel' in Start menu") Call ReadIt(1,sPath & sV1) Call SetUIElement(2,"Show cascading 'Printers' in Start menu") Call ReadIt(2,sPath & sV2) Call SetUIElement(3,"Show cascading 'Recycle Bin' in Start menu") Call ReadIt(3,sPath & sV3) Call SetUIElement(4,"Show cascading 'Scheduled Tasks' in Start menu") Call ReadIt(4,sPath & sV4) Call SetUIElement(5,"Show cascading 'History' in Start menu") Call ReadIt(5,sPath & sV5) Call SetUIElement(6,"Show cascading 'Subscriptions' in Start menu") Call ReadIt(6,sPath & sV6) else Disable end if END SUB 'Called when the Plugin should validate the Data the user has entered SUB Plugin_CheckData(ElementIndex) END SUB 'Called when the Plugin should apply the changes SUB Plugin_Apply(ElementIndex,ElementSubIndex) Call WriteIt(1, sPath & sV1) Call WriteIt(2, sPath & sV2) Call WriteIt(3, sPath & sV3) Call WriteIt(4, sPath & sV4) 'IE6+ fix! If GetUIElementEx(5)=true then Call WriteIt(5, sPath & sV5) Call IniWriteValue(sPath & sV5file,".ShellClassInfo","UICLSID","{7BD29E00-76C1-11CF-9DD0-00A0C9034933}") Call FileSetAttribute(sPath & sV5file,"H+") else If FileExists(sPath & sV5file) then Call FileSetAttribute(sPath & sV5file,"H-") Call FileDelete(sPath & sV5file) end if Call WriteIt(5, sPath & sV5) end if Call WriteIt(6, sPath & sV6) END SUB 'Called when the Plugin is about to be removed from memory SUB Plugin_Terminate END SUB Sub ReadIt(ITEM,FILENAME) if FolderExists(FILENAME) then Call SetUIElementEx(ITEM,true) end if End Sub Sub WriteIt(ITEM,FILENAME) if GetUIElementEx(ITEM)=true then if FolderExists(FILENAME)=false then Call FolderCreate(FILENAME) end if else if FolderExists(FILENAME)=true then Call FolderDelete(FILENAME) end if end if End Sub